package com.dime.basic.api.factory;

import com.dime.basic.api.RemoteBaseMainclusionService;

import com.dime.basic.api.RemoteHarmService;
import com.dime.basic.api.domain.DimeBasemaincheckconclusion;
import com.ruoyi.common.core.domain.R;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class RemoteBaseMainclusionFallbackFactory implements FallbackFactory<RemoteBaseMainclusionService> {
    @Override
    public RemoteBaseMainclusionService create(Throwable cause) {

        return new RemoteBaseMainclusionService() {
            @Override
            public R<DimeBasemaincheckconclusion> getMaincheckconclusionByid(String conslusionId) {
                return R.fail("编号查询危害详细信息:" + cause.getMessage());

            }
        };
    }
}
